home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)tm.d64
/
cupid.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
3KB
|
172 lines
1 D$=""
2 POKE53281,3:POKE53280,3
10 PRINT"[147]"
30 PRINT"[144]CUPID"
40 GOSUB900
50 :
100 PRINT"[147]"
120 PRINT"ROBERT KLOPP"
130 PRINT"BOX 67"
140 PRINT"FAUQUIER, BRITISH COLUMBIA"
150 PRINT"VOG 1K0"
160 GOSUB900
170 :
200 PRINT"[147]"
220 PRINT"EQUIPMENT REQUIRED TO RUN THIS PROGRAM"
230 PRINT"C-64, CASSETTE"
280 GOSUB900
290 :
300 PRINT"[147]"
310 PRINT"INSTUCTIONS"
320 PRINT"PLEASE INPUT YOUR LOVER'S NAME"
330 PRINT" : ";NA$;" [146] "
340 GETA$:IFA$=""THEN340
345 IFA$=CHR$(13)THENFL=1:GOTO880
350 IFA$=CHR$(20)ANDLEN(NA$)>0THENNA$=LEFT$(NA$,LEN(NA$)-1)
360 IFASC(A$)>64ANDASC(A$)<90THENNA$=NA$+A$
370 PRINT"[145]";:GOTO330
880 GOSUB900
890 GOTO1000
900 PRINTD$
901 PRINT"PRESS ANY KEY TO CONTINUE"
902 GETA$:IFA$=""THEN902
910 RETURN
1000 IFFL=0THENPOKE53281,3:POKE53280,3:GOTO320
1001 N$="I LOVE YOU "+NA$
1002 D$=""
1010 V$="HAPPY VALENTINES '85"
1020 S$=" "
1030 S$=LEFT$(S$,(20-(LEN(N$)+1)/2)+1)
1040 S$=S$+N$:N$=S$
1050 :
1100 GOSUB3000
1110 :
1150 PRINT"[147]";LEFT$(D$,10);TAB(20)"[211]"
1200 POKEX1,10:POKEY1,10
1210 POKETU,2
1220 FORX=10TO70
1225 : POKEX1,X
1230 : Y=X^1.13
1235 : POKEY1,Y
1240 NEXT
1245 :
1246 PRINT"[144]"
1250 POKEX2,X:POKEY2,Y:POKETU,4
1260 FORX=10TO19
1262 : PRINTLEFT$(D$,10);TAB(X)" -"
1263 : P=50:GOSUB4000
1264 NEXT
1270 :
1990 PRINT""
2000 PRINTLEFT$(D$,10);TAB(20)"[211]"
2005 P=200:GOSUB4000
2010 PRINTLEFT$(D$,9);TAB(19)"[211] [211]"
2020 : PRINTTAB(18)"[211][211]"
2030 : PRINTTAB(19)"[211] [211]"
2040 : PRINTTAB(20)"[211]"
2045 P=200:GOSUB4000
2046 :
2050 PRINTLEFT$(D$,8);TAB(17)"[211][211] [211][211]"
2060 : PRINTTAB(16)"[211][211]"
2070 : PRINTTAB(16)"[211][211]"
2080 : PRINTTAB(17)"[211][211]"
2090 : PRINTTAB(18)"[211][211]"
2100 : PRINTTAB(19)"[211][211]"
2110 : PRINTTAB(20)"[211]"
2115 P=200:GOSUB4000
2116 :
2120 PRINTLEFT$(D$,7);TAB(15) "[211][211][211] [211][211][211]"
2130 : PRINTTAB(14)"[211][211]"
2140 : PRINTTAB(14)"[211][211]"
2150 : PRINTTAB(14)"[211][211]"
2160 : PRINTTAB(15)"[211][211]"
2170 : PRINTTAB(16)"[211][211]"
2180 : PRINTTAB(17)"[211][211]"
2190 : PRINTTAB(18)"[211][211]"
2200 : PRINTTAB(19)"[211][211]"
2210 : PRINTTAB(20)"[211]"
2212 :
2213 PRINT"[144]"
2215 POKETU,2
2220 FORX=70TO140
2225 : Y=Y+.86
2230 : POKEY1,Y
2235 : POKEX1,X
2240 NEXT
2245 PRINTLEFT$(D$,18);TAB(11);
2246 :
2250 FORX=140TO255STEP8
2260 : POKEX1,X
2262 : Y=((X-140)/8)
2265 : PRINTMID$(V$,Y+1,1);
2270 NEXT
2271 FORX=2TO6
2272 : PRINTMID$(V$,Y+X,1);
2274 NEXT
2275 POKETU,0
2280 P=500:GOSUB4000
2285 :
2290 POKEX1,25:POKEY1,200:POKETU,2
2295 P=500:GOSUB4000
2300 POKEX2,25:POKEY2,200:POKETU,4
2305 PRINTLEFT$(D$,20);
2310 FORX=1TOLEN(N$)
2315 : PRINTMID$(N$,X,1)"-[157]";
2316 P=50:GOSUB4000
2320 NEXT
2325 PRINT"!"
2326 :
2330 POKETU,2
2335 Y=200
2340 FORX=25TO75
2350 : POKEX1,X
2360 : Y=Y^.996
2370 : POKEY1,Y
2380 NEXT
2390 R=INT(RND(1)*2):R1=INT(RND(1)*2)
2400 POKEX1,X+3*(R1-R)
2410 POKEY1,Y+3*(R-R1)
2420 P=100:GOSUB4000
2430 GETA$:IFA$=""THEN2390
2440 SYS2
2900 :
2925 :
2950 :
2975 :
3000 PRINT"[147]ITS ALMOST VALENTINES!!"
3010 BG=53248:SL=13
3020 TU=BG+21:S1=2:S2=4:L=2040:SS=832
3025 X1=BG+2:Y1=BG+3:X2=BG+4:Y2=BG+5
3030 FORR=0TO63
3031 : READD
3032 : POKESS+R,D
3033 NEXT
3035 FORR=64TO127
3036 : READD
3037 : POKESS+R,D
3038 NEXT
3040 POKEBG+40,1:POKEBG+41,1
3050 POKEL+1,SL:POKEL+2,SL+1
4000 FORPA=1TOP:NEXT:RETURN
4025 :
4050 :
4075 :
4100 DATA 224,112,80,88,208,136,44,201
4101 DATA 4,116,146,4,46, 100,12, 27
4102 DATA 121,252,53,79,255,43 ,168, 4
4103 DATA 115,196, 4,6 ,194,4 ,12 ,193
4104 DATA 4,25,128,136, 8,128, 80, 0
4105 DATA 0,32, 0, 0, 0, 0, 0, 0
4106 DATA 0, 0, 0, 0, 0, 0, 0, 0
4107 DATA 0, 0, 0, 0, 0, 0, 0, 0
4108 :
4109 :
4110 DATA 0, 0,192, 56,56,160,20,116
4111 DATA 144,10, 98,144, 26,68,152,15
4112 DATA 59,248,5,177,152,27,122,152
4113 DATA 14,244,152, 1,240,144, 6,16
4114 DATA 160, 2, 96,192, 0, 32, 0, 0
4115 DATA 0, 0, 0, 0, 0, 0, 0,0
4116 DATA 0, 0, 0, 0, 0, 0, 0,0
4117 DATA 0, 0, 0, 0, 0, 0, 0,0